package com.wyg.controller;

import com.wyg.entity.ScheduleJobEntity;
import com.wyg.quartz.service.ScheduleJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/task")
public class TimingTaskController {
    @Autowired
    private ScheduleJobService scheduleJobService;

    @RequestMapping(value = "/add",method = RequestMethod.POST)
    public void test01(@RequestBody ScheduleJobEntity scheduleJob){
        scheduleJobService.add(scheduleJob);
    }

}
